import request from '@/utils/request'

export default {

  getCollect(courseId) {
    return request({
      url: `/eduservice/course-collect/isCollect/${courseId}`,
      method: 'get',
    })
  },
  addCollect(courseId) {
    return request({
      url: `/eduservice/course-collect/addCollect/${courseId}`,
      method: 'post',
    })
  },
  deletCollect(courseId) {
    return request({
      url: `/eduservice/course-collect/${courseId}`,
      method: 'delete',
    })
  },

  getPCollet(page, limit){
    return request({
      url: `/eduservice/course-collect/Collect/${page}/${limit}`,
      method: 'post',
    })
  }
}
